<%@ page language="java" pageEncoding="UTF-8"
         contentType="text/html;charset=utf-8" %>
<%@ include file="/taglibs.jsp" %>
<script type="text/javascript" src="${ctx}/js/easy_validator.pack.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery.bgiframe.min.js"></script>
<script type="text/javascript"
        src="${ctx }/resource/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript"
        src="${ctx}/resource/admin/js/ajaxfileupload.js"></script>
<link href="${ctx}/css/validate.css" rel="stylesheet" type="text/css"/>
<html>
<head>
    <title>信息内容功能</title>
</head>
<body>
<form id="expertEditForm" name="expertEditForm" action="" method="post">
    <input type="hidden" value="${param.flag }" name="flag"/> <input
        type="hidden" value="${map.id }" name="id" id="id"/>
    <center>
        <table class="mobile" style="width: 95%;">
            <tr class="pageheader">
                <td colspan="2"><strong>专家鉴定</strong></td>
            </tr>
            <tr height="25">
                <td class="outDetail" style="width: 30%">古玩名称： <label
                        style="font-weight: bold; color: red"> </label></td>
                <td class="outDetail2"><input type="text" id="productName" value="${map.productName }"
                                              name="productName" readonly/></td>
            </tr>
            <tr height="25">
                <td class="outDetail" style="width: 30%">专家意见： <label
                        style="font-weight: bold; color: red"> </label></td>
                <td class="outDetail2">
                    <textarea rows="5" id="comments" cols="50" name="comments">${map.comments }</textarea></td>
            </tr>
            <c:if test="${1==1 }"></c:if>
        </table>
    </center>
    <p align="center">
        <br>
        <c:if test="${param.method!='show' }">
            <input type="button" class="btn" value="保  存" onclick="save(this);"/>
        </c:if>
        <input type="button" class="btn" value="关  闭"
               onclick="window.close();"/>
    </p>
</form>
</body>
<script type="text/javascript">
    function save(src) {
        $.post("expertEditSave.html", $("#expertEditForm").serializeArray(),
            function (result) {
                result = eval("(" + result + ")");
                if (result.status == "true" || result.status == true) {
                    alert(result.msg);
                    saveAnd();
                } else {
                    alert(result.msg);
                }
            }
        );
    }
</script>
</html>
